package com.example.oj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("problem_data")
@Data
public class ProblemData {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private Integer ac;
    private Integer wa;
    private Integer tle;
    private Integer mle;
    private Integer re;
    private Integer ce;
    private Integer total;
    private String tags;
    @JsonFormat(pattern = "yyyy-MM-DD")
    private Date createDate;
    @TableField(exist = false)
    private String jwt;
}
